<HTML>
<HEAD>
<meta charset="UTF-8">
<title>DefaultActiveSpeakerPolicy.calculateScore - amazon-chime-sdk</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">amazon-chime-sdk</a>&nbsp;/&nbsp;<a href="../index.html">com.amazonaws.services.chime.sdk.meetings.audiovideo.audio.activespeakerpolicy</a>&nbsp;/&nbsp;<a href="index.html">DefaultActiveSpeakerPolicy</a>&nbsp;/&nbsp;<a href="./calculate-score.html">calculateScore</a><br/>
<br/>
<h1>calculateScore</h1>
<a name="com.amazonaws.services.chime.sdk.meetings.audiovideo.audio.activespeakerpolicy.DefaultActiveSpeakerPolicy$calculateScore(com.amazonaws.services.chime.sdk.meetings.audiovideo.AttendeeInfo, com.amazonaws.services.chime.sdk.meetings.audiovideo.VolumeLevel)"></a>
<code><span class="keyword">fun </span><span class="identifier">calculateScore</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.audio.activespeakerpolicy.DefaultActiveSpeakerPolicy$calculateScore(com.amazonaws.services.chime.sdk.meetings.audiovideo.AttendeeInfo, com.amazonaws.services.chime.sdk.meetings.audiovideo.VolumeLevel)/attendeeInfo">attendeeInfo</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo/-attendee-info/index.html"><span class="identifier">AttendeeInfo</span></a><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.audio.activespeakerpolicy.DefaultActiveSpeakerPolicy$calculateScore(com.amazonaws.services.chime.sdk.meetings.audiovideo.AttendeeInfo, com.amazonaws.services.chime.sdk.meetings.audiovideo.VolumeLevel)/volume">volume</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo/-volume-level/index.html"><span class="identifier">VolumeLevel</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html"><span class="identifier">Double</span></a></code>
<p>Return the score of the speaker. If the score is 0, this speaker is not active.</p>
<h3>Parameters</h3>
<p><a name="attendeeInfo"></a>
<code>attendeeInfo</code> - : <a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo/-attendee-info/index.html">AttendeeInfo</a> - Attendee information containing attendeeId and
externalUserId</p>
<p><a name="volume"></a>
<code>volume</code> - : <a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo/-volume-level/index.html">VolumeLevel</a> - Current volume of attendee</p>
</BODY>
</HTML>
